home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / Open Transport / Sample Code / NetFractal™ / ES stuff□ / APane.h < prev    next >
Encoding:
Text File  |  1996-11-19  |  716 b   |  50 lines  |  [TEXT/MPCC]

  1. //    APane.h
  2.  
  3. #pragma once
  4.  
  5.  
  6. #include "LPane.h"
  7.  
  8.  
  9. class ScreenTarget;
  10.  
  11. class APane :
  12.     public LPane
  13. {
  14. protected:
  15.     ScreenTarget        *theTarget;
  16.     void                *theData;
  17.     long                tRowBytes;
  18.     long                tWidth;
  19.     long                tHeight;
  20.     long                tHPos;
  21.     long                tVPos;
  22. public:
  23.     static APane *        CreateAPaneStream(
  24.                             LStream *stream);
  25.     enum {
  26.         class_ID = 'APan'
  27.     };
  28.  
  29.     void                FinishCreate();
  30.  
  31.                         APane(
  32.                             LStream *inStream) :
  33.                             LPane(inStream)
  34.                         {
  35.                             theTarget = NULL;
  36.                             theData = NULL;
  37.                         }
  38.  
  39.     void                DrawSelf();
  40.  
  41.     void                SetData(
  42.                             void *data,
  43.                             long rowBytes,
  44.                             long width,
  45.                             long height,
  46.                             long hPos,
  47.                             long vPos);
  48.     ScreenTarget        *GetScreenTarget() { return theTarget; }
  49. };
  50.